package com.csdj.service;

import com.csdj.entity.AppInfo;

import com.csdj.entity.AppInfoExample;
import com.csdj.mapper.AppInfoMapper;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import javax.transaction.Transactional;
import java.util.List;
@Transactional
@Service("appInfoservice")
public class AppInfoService implements IAppInfoService {
    @Resource
    private AppInfoMapper appInfoMapper;

    @Override
    public List<AppInfo> getallAPPInfo() {
        return appInfoMapper.selectByExample(new AppInfoExample());
    }

    @Override
    public int insert(AppInfo appInfo) {
        return appInfoMapper.insert(appInfo);
    }

    @Override
    public AppInfo selectByPrimaryKey(Integer id) {
        return appInfoMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(AppInfo record) {
        return appInfoMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int delete(Integer id) {
        return appInfoMapper.deleteByPrimaryKey(id);
    }
}
